package com.moetube.user.feign;

import com.moetube.entity.Result;
import com.moetube.user.pojo.Collect;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@FeignClient(name = "user")
@RequestMapping("/collect")
public interface CollectFeign {
    @PostMapping
    public Result add(@RequestBody Collect collect);

    @DeleteMapping("/{id}")
    public Result delete(@PathVariable Long id);

    @GetMapping("/user/{userId}")
    public Result<List<Collect>> findCollectsListByUserId(@PathVariable("userId") String userId);
}
